<extend name="Public/layout"/>

<block name="header">
    <div class="header panel">
        <div class="container">
            <div class="panel-body">
                <ul class="breadcrumb">
                    <li><i class="icon-location-arrow"></i></li>
                    <li><a href="__ROOT__/">首页</a></li>
                    <li><a href="__ROOT__/">用户登录</a></li>
                </ul>
             </div>
         </div>
    </div>
</block>

<block name="body">
    <div class="container">
        <div class="row">
            <div class="login col-xs-12 col-md-4">
                <h1 class="title">{$meta_title}</h1>
                <form class="form" action="{:U('User/login')}" method="post">
                    <div class="form-group">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="icon-user"></i></span>
                            <input type="text" class="form-control" placeholder="请输入邮箱/手机号/用户名" name="username">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="icon-lock"></i></span>
                            <input type="password" class="form-control" placeholder="请输入密码" name="password">
                        </div>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-info submit ajax-post" target-form="form" data-loading-text="正在登录...">登 录</button>
                        <button type="reset" class="btn reset">重 置</button>
                    </div>
                </form>
                {:hook('SyncLogin')} <!-- 第三方登陆钩子 -->
            </div>
        </div>
    </div>
</block>
